Scenario #4090: Create Subsequent Membership of Partner

UseCase Create Membership => Membership: M-3101001 - Test AG

Properties

Required

Given

name value
partnerName Test AG
memberNumberSuffix 01
validFrom 2025-02-24
newStatus ACTIVE
membershipFeeBillable true

Partner: Test AG

HTTP GET "/api/hs/office/partners?name=Test+AG" \
  -H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
  `# {` \
  `#   "sub" : "uuid<hsh-alex_superuser>"` \
  `# }`
=> status: 200 OK 
[ {
  "uuid" : "17f118e3-af4e-44b2-a512-6a2a331570a4", // Partner: P-31010 - Test AG
  "partnerNumber" : "P-31010",
  "partnerRel" : {
    "uuid" : "22b0c1b5-5b3b-4cd1-8c56-464f71deeac3", // partnerRelationUuid
    "anchor" : {
      "uuid" : "882bda1d-4e5e-42f8-afdd-b9741d1c1f4e", // Person: Hostsharing eG
      "personType" : "LEGAL_PERSON",
      "tradeName" : "Hostsharing eG",
      "salutation" : null,
      "title" : null,
      "givenName" : null,
      "familyName" : null
    },
    "holder" : {
      "uuid" : "9e12338f-c1ea-4237-9d64-f085a84850c6", // Person: Test AG
      "personType" : "LEGAL_PERSON",
      "tradeName" : "Test AG",
      "salutation" : null,
      "title" : null,
      "givenName" : null,
      "familyName" : null
    },
    "type" : "PARTNER",
    "mark" : null,
    "contact" : {
      "uuid" : "eef1dec6-8687-4615-91ae-3fbbcc48dd34", // Contact: Test AG - China
      "caption" : "Test AG - China",
      "postalAddress" : {
        "country" : "China",
        "province" : "Guangdong Province",
        "city" : "Dongguan City",
        "street" : "No.2 Commercial Second Street",
        "district" : "Niushan Wei Wu",
        "department" : "Executive Board",
        "building" : "Thi Chi Koh Building"
      },
      "emailAddresses" : {
        "main" : "norden@test-ag.example.org"
      },
      "phoneNumbers" : {
        "phone" : "++15 999 654321"
      }
    }
  },
  "details" : {
    "uuid" : "2afc94e0-29c7-4396-8e96-fbb46213e0fa",
    "registrationOffice" : "Registergericht Hamburg",
    "registrationNumber" : "1234567",
    "birthName" : null,
    "birthPlace" : null,
    "birthday" : null,
    "dateOfDeath" : null
  }
} ]

In production data, this query could result in multiple outputs. In that case, you have to find out which is the right one.

Create Membership: M-3101001 - Test AG

HTTP POST "/api/hs/office/memberships" \
  -H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
  `# {` \
  `#   "sub" : "uuid<hsh-alex_superuser>"` \
  `# }` \
  <<EOF
{
  "partner.uuid" : "17f118e3-af4e-44b2-a512-6a2a331570a4", // Partner: P-31010 - Test AG
  "memberNumberSuffix" : "01",
  "status" : "ACTIVE",
  "validFrom" : "2025-02-24",
  "membershipFeeBillable" : "true"
}
EOF
=> status: 201 CREATED 0683398e-1445-4a78-b9c1-b4b7dc3bfe8b

Verify That the Membership Got Created

HTTP GET "/api/hs/office/memberships/0683398e-1445-4a78-b9c1-b4b7dc3bfe8b" \
  -H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
  `# {` \
  `#   "sub" : "uuid<hsh-alex_superuser>"` \
  `# }`
=> status: 200 OK 
{
  "uuid" : "0683398e-1445-4a78-b9c1-b4b7dc3bfe8b",
  "partner" : {
    "uuid" : "17f118e3-af4e-44b2-a512-6a2a331570a4", // Partner: P-31010 - Test AG
    "partnerNumber" : "P-31010",
    "partnerRel" : {
      "uuid" : "22b0c1b5-5b3b-4cd1-8c56-464f71deeac3", // partnerRelationUuid
      "anchor" : {
        "uuid" : "882bda1d-4e5e-42f8-afdd-b9741d1c1f4e", // Person: Hostsharing eG
        "personType" : "LEGAL_PERSON",
        "tradeName" : "Hostsharing eG",
        "salutation" : null,
        "title" : null,
        "givenName" : null,
        "familyName" : null
      },
      "holder" : {
        "uuid" : "9e12338f-c1ea-4237-9d64-f085a84850c6", // Person: Test AG
        "personType" : "LEGAL_PERSON",
        "tradeName" : "Test AG",
        "salutation" : null,
        "title" : null,
        "givenName" : null,
        "familyName" : null
      },
      "type" : "PARTNER",
      "mark" : null,
      "contact" : {
        "uuid" : "eef1dec6-8687-4615-91ae-3fbbcc48dd34", // Contact: Test AG - China
        "caption" : "Test AG - China",
        "postalAddress" : {
          "country" : "China",
          "province" : "Guangdong Province",
          "city" : "Dongguan City",
          "street" : "No.2 Commercial Second Street",
          "district" : "Niushan Wei Wu",
          "department" : "Executive Board",
          "building" : "Thi Chi Koh Building"
        },
        "emailAddresses" : {
          "main" : "norden@test-ag.example.org"
        },
        "phoneNumbers" : {
          "phone" : "++15 999 654321"
        }
      }
    },
    "details" : {
      "uuid" : "2afc94e0-29c7-4396-8e96-fbb46213e0fa",
      "registrationOffice" : "Registergericht Hamburg",
      "registrationNumber" : "1234567",
      "birthName" : null,
      "birthPlace" : null,
      "birthday" : null,
      "dateOfDeath" : null
    }
  },
  "mainDebitor" : null,
  "memberNumber" : "M-3101001",
  "memberNumberSuffix" : "01",
  "validFrom" : "2025-02-24",
  "validTo" : null,
  "status" : "ACTIVE",
  "membershipFeeBillable" : true
}

generated on 2026-08-10 04:34:22 for branch HEAD